//
//  LDSoundController.h
//  cliptest
//
//  Created by James Tong on 18/06/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenAL/al.h>
#import <OpenAL/alc.h>

#import "AudioSessionSupport.h"
#import "OpenALSupport.h"
// #import "OpenALSoundController.h"

@interface LDSoundController : NSObject {
	
	ALCdevice*		openALDevice;
	ALCcontext*		openALContext;
	
	ALuint			outputSource[2];
	
	ALuint			outputBuffer[2];

	void			*laserPcmData,
					*click01PcmData;
}

+ (LDSoundController *) sharedInstance;
- (id) init;
- (void) initOpenAL;
- (void) playLaser;
- (void) playClick01;

@end
